import java.util.ArrayList;


public class FIFO {

	private ArrayList<String> fifo;
	
	public FIFO(){
		
		this.fifo= new ArrayList<String>();
	}
	
	public void push(String key, String p){
		
		this.fifo.add(key+"->"+p);
	}
	
	public String pop(){
		
		return this.fifo.remove(0);
	}
	
	public ArrayList<String> getFIFO(){
		
		return this.fifo;
	}
}
